package com.example.demo.configuration;

import javax.websocket.EncodeException;
import javax.websocket.Encoder;
import javax.websocket.EndpointConfig;

import com.example.demo.enity.UserInfo;
/**
 * 1.解析器，在使用websocket，发送实体类数据时，需要配置该解析器是的实体对象转换为String类型数据
 * @author acer
 *
 */
public class SeverEncoder implements Encoder.Text<UserInfo> {

	@Override
	public void init(EndpointConfig endpointConfig) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void destroy() {
		// TODO Auto-generated method stub
		
	}


	@Override
	public String encode(UserInfo object) throws EncodeException {
		// TODO Auto-generated method stub
		return null;
	}

}
